package com.jiangyg.mall.coupon.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类描述：商品阶梯价格
 *
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 21:33:05
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mc_sku_ladder")
public class SkuLadder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField("id")
    private Long id;

    /**
     * spu_id
     */
    @TableField("sku_id")
    private Long skuId;

    /**
     * 满几件
     */
    @TableField("fullcount")
    private Integer fullcount;

    /**
     * 打几折
     */
    @TableField("discount")
    private BigDecimal discount;

    /**
     * 折后价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 是否叠加其他优惠[0-不可叠加，1-可叠加]
     */
    @TableField("superposable")
    private Integer superposable;

}
